package com.xnyzc.lhy.finance.mapper.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyzc.lhy.finance.entity.wallet.OaDFreeze;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.*;

/**
 * <p>
 * 余额冻结表 Mapper 接口
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-24
 */
public interface OaDFreezeMapper extends BaseMapper<OaDFreeze> {

    /**
     * 查询今日待解冻金额
     * @return
     */
    List<OaDFreeze> queryFreeze();

    /**
     * 修改冻结状态
     * @return
     */
    Integer updateFreeze(@Param("intParams") List<Long> intParams);

    /**
     * 查询抽成比配置
     */
    BigDecimal queryFreezeDraw(@Param("orderNo") String orderNo);

}
